//
//  UIView+Frame.m
//  01-UIView、UIWindow
//
//  Created by LL.F on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
// 修改x值
- (void)setFll_x:(CGFloat)fll_x
{

    CGRect rect = self.frame;
    rect.origin.x = fll_x;
    self.frame = rect;
}
- (CGFloat)fll_x
{

    return self.frame.origin.x;
}
// 修改y值
- (void)setFll_y:(CGFloat)fll_y
{
    CGRect rect = self.frame;
    rect.origin.y = fll_y;
    self.frame = rect;
}
- (CGFloat)fll_y
{
    return self.frame.origin.y;
}
// 修改width
- (void)setFll_width:(CGFloat)fll_width
{
    CGRect rect = self.frame;
    rect.size.width = fll_width;
    self.frame = rect;
}
- (CGFloat)fll_width
{
    return self.frame.size.width;
}
// 修改height
- (void)setFll_height:(CGFloat)fll_height
{
    CGRect rect = self.frame;
    rect.size.height = fll_height;
    self.frame = rect;
}
- (CGFloat)fll_height
{
    return self.frame.size.height;
}
// 修改centerX
- (void)setFll_centerX:(CGFloat)fll_centerX
{

    CGPoint center = self.center;
    center.x = fll_centerX;
    self.center = center;
}
- (CGFloat)fll_centerX
{

    return self.center.x;
}
// 修改centerY
- (void)setFll_centerY:(CGFloat)fll_centerY
{
    
    CGPoint center = self.center;
    center.y = fll_centerY;
    self.center = center;
}
- (CGFloat)fll_centerY
{
    
    return self.center.y;
}


@end
